import lazyLoadView from '@/router/lazy-load';
import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const MessageManagement: AppRouteRecordRaw = {
  path: '/message-management',
  name: 'MessageManagement',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.message',
    requiresAuth: true,
    icon: 'icon-message',
    order: 6,
    roleCode: 'GROUP_NOTICE_ADMIN',
  },
  children: [
    {
      path: 'sms',
      name: 'Sms',
      component: lazyLoadView(
        () => import('@/views/message-notice/sms/index.vue')
      ),
      meta: {
        locale: 'menu.message.sms',
        requiresAuth: true,
        roleCode: 'GROUP_SMS',
        pageName: '短信列表',
      },
    },
  ],
};

export default MessageManagement;
